﻿namespace ThingsGateway.Foundation
{
    public class ReadWriteRequest : IRequestInfo
    {
        public ReadWriteType ReadWriteType { get; set; }
        public string[] DeviceAddress { get; set; } = new string[0];
        public ushort[] Length { get; set; } = new ushort[0];
        public byte[] Bytes { get; set; } = new byte[0];
        public bool[] Bools { get; set; } = new bool[0];
    }
    public enum ReadWriteType : int
    {
        ReadBytes,
        ReadByte,
        ReadBools,
        ReadBool,
        WriteByte,
        WriteBool,
        Other,
    }
}
